﻿@model IEnumerable<Stardust.Models.TipoHabitacionXHotelViewModelList>

@{
    ViewBag.Title = "Ver tipos de habitacion";
}

<h3>Hotel: @ViewBag.nombreHotel </h3>

<p>
    <a href="@Url.Action("CreateTipoHabitacionXHotel", new { id = ViewBag.idHotel })">
        <img src="@Url.Content("~/Content/images/icons/color/plus.png")" alt="Edit" />
        Añadir tipo de habitación al hotel
    </a>
</p>

<div class="wrapper">
    <div class="widget">
        <div class="title"><h6>Lista de Tipos de Habitacion</h6></div>
        <div class="dataTables_wrapper">
            <table cellpadding = "0" cellspacing = "0" width = "100%" class = "display dTable">
                <thead>
                    <tr>
                        <th class="ui-state-default" rowspan="1" colspan="1" style="width:209px;" >
                            <div class="DataTables_sort_wrapper">
                            Nombre del Tipo de Habitacion
                            <span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-s"></span>
                            </div>
                        </th>
                        <th class="ui-state-default" rowspan="1" colspan="1" style="width:209px;" >
                            <div class="DataTables_sort_wrapper">
                            Precio Base (S/.)
                            <span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-s"></span>
                            </div>
                        </th>
                        <th class="ui-state-default" rowspan="1" colspan="1" style="width:209px;" >
                            <div class="DataTables_sort_wrapper">
                            Descripción
                            <span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-s"></span>
                            </div>
                        </th>
                        <th class="ui-state-default" rowspan="1" colspan="1" style="width:209px;" >
                            <div class="DataTables_sort_wrapper">
                            Número de Personas
                            <span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-s"></span>
                            </div>
                        </th>
                        <th class="ui-state-default" rowspan="1" colspan="1" style="width:209px;" >
                            <div class="DataTables_sort_wrapper">
                            Opciones
                            <span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-s"></span>
                            </div>
                        </th>
                    </tr>
                </thead>

                <tbody>
                @foreach (var item in Model)
                {
                    <tr class="gradeA odd">
                        <td>@Html.DisplayFor(modelItem => item.nombre)</td>
                        <td>@Html.DisplayFor(modelItem => item.precio)</td>
                        <td>@Html.DisplayFor(modelItem => item.descripcion)</td>
                        <td>@Html.DisplayFor(modelItem => item.nroPersonas)</td>
                        <td>
                            <a href="@Url.Action("EditTipoHabitacionXHotel", new { idTipoHabitacion = item.idTipoHabitacion, idHotel = ViewBag.idHotel })"><img src="@Url.Content("~/Content/images/icons/color/pencil.png")" alt="Edit" />Editar </a> | 
                            <a href="@Url.Action("DeleteTipoHabitacionXHotel", new { idTipoHabitacion = item.idTipoHabitacion, idHotel = ViewBag.idHotel })"><img src="@Url.Content("~/Content/images/icons/color/cross.png")" alt="Delete" />Borrar </a> |
                            <a href="@Url.Action("ListTipoHabitacionXHotelXTemporada", new { idTipoHabitacion = item.idTipoHabitacion, idHotel = ViewBag.idHotel })"><img src="@Url.Content("~/Content/images/icons/color/currency.png")" alt="Edit" />Descuentos </a>
                        </td>
                    </tr>
                }
                </tbody>
            </table>
        </div>
    </div>
</div>

<br/><br/>
<div>
    @Html.ActionLink("Regresar", "List")
</div>
